<script setup lang="ts">

import {ref} from "vue";

const rawHtml = ref('<a href="https://www.baidu.com">百度</a>')

</script>

<template>
  <div>
    <h1>原始HTML</h1>
    <p>
      不解析HTML标签，直接显示原始HTML代码。{{ rawHtml }}
    </p>
    <p>解析HTML标签：<span v-html="rawHtml"></span></p>
  </div>
</template>

<style scoped>

</style>